-- GENERATED SPELL FOR [Dark Rune Shaper] --


function spell0_27965(pUnit, Event) --@Chiseling Ray,n/a--
pUnit:FullCastSpellOnTarget(51496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27965', 5500, 1)
end

function spell1_27965(pUnit, Event) --@Chiseling Ray,n/a--
pUnit:FullCastSpellOnTarget(59034,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27965', 5500, 1)
end

function Sorts_27965(pUnit, Event)
local choix_sorts_27965 = math.random(0, 1)
if choix_sorts_27965 == 0 then
pUnit:RegisterEvent('spell0_27965', 1, 1)
end
if choix_sorts_27965 == 1 then
pUnit:RegisterEvent('spell1_27965', 1, 1)
end
end

function mob27965_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27965', math.random(1500, 3000), 1)
end

function mob27965_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27965_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27965_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27965, 1, 'mob27965_Action')
RegisterUnitEvent(27965, 2, 'mob27965_Leave')
RegisterUnitEvent(27965, 3, 'mob27965_Kill')
RegisterUnitEvent(27965, 4, 'mob27965_Die')
